/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package mywebapp.webpage;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.AbstractEnumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>EAction Form</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see mywebapp.webpage.WebpagePackage#getEActionForm()
 * @model
 * @generated
 */
public final class EActionForm extends AbstractEnumerator {
	/**
	 * The '<em><b>ADD</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ADD</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ADD_LITERAL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ADD = 0;

	/**
	 * The '<em><b>UPDATE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>UPDATE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #UPDATE_LITERAL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int UPDATE = 1;

	/**
	 * The '<em><b>SELECT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SELECT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SELECT_LITERAL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SELECT = 2;

	/**
	 * The '<em><b>SELECTALL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SELECTALL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SELECTALL_LITERAL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SELECTALL = 3;

	/**
	 * The '<em><b>DELETE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DELETE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DELETE_LITERAL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DELETE = 4;

	/**
	 * The '<em><b>ADD</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ADD
	 * @generated
	 * @ordered
	 */
	public static final EActionForm ADD_LITERAL = new EActionForm(ADD, "ADD", "ADD");

	/**
	 * The '<em><b>UPDATE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #UPDATE
	 * @generated
	 * @ordered
	 */
	public static final EActionForm UPDATE_LITERAL = new EActionForm(UPDATE, "UPDATE", "UPDATE");

	/**
	 * The '<em><b>SELECT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SELECT
	 * @generated
	 * @ordered
	 */
	public static final EActionForm SELECT_LITERAL = new EActionForm(SELECT, "SELECT", "SELECT");

	/**
	 * The '<em><b>SELECTALL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SELECTALL
	 * @generated
	 * @ordered
	 */
	public static final EActionForm SELECTALL_LITERAL = new EActionForm(SELECTALL, "SELECTALL", "SELECTALL");

	/**
	 * The '<em><b>DELETE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DELETE
	 * @generated
	 * @ordered
	 */
	public static final EActionForm DELETE_LITERAL = new EActionForm(DELETE, "DELETE", "DELETE");

	/**
	 * An array of all the '<em><b>EAction Form</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final EActionForm[] VALUES_ARRAY =
		new EActionForm[] {
			ADD_LITERAL,
			UPDATE_LITERAL,
			SELECT_LITERAL,
			SELECTALL_LITERAL,
			DELETE_LITERAL,
		};

	/**
	 * A public read-only list of all the '<em><b>EAction Form</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>EAction Form</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EActionForm get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EActionForm result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>EAction Form</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EActionForm getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EActionForm result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>EAction Form</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EActionForm get(int value) {
		switch (value) {
			case ADD: return ADD_LITERAL;
			case UPDATE: return UPDATE_LITERAL;
			case SELECT: return SELECT_LITERAL;
			case SELECTALL: return SELECTALL_LITERAL;
			case DELETE: return DELETE_LITERAL;
		}
		return null;
	}

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EActionForm(int value, String name, String literal) {
		super(value, name, literal);
	}

} //EActionForm
